package com.hserver.docker.controller;


import cn.hserver.plugin.web.annotation.Controller;
import cn.hserver.plugin.web.annotation.RequestMapping;
import cn.hserver.plugin.web.annotation.RequestMethod;
import cn.hserver.plugin.web.interfaces.HttpResponse;

import java.util.HashMap;
import java.util.Map;

@Controller("/home/")
public class HomeController {

    @RequestMapping(value = "home", method = RequestMethod.GET)
    public void index(HttpResponse httpResponse){
        Map<String, Object> data = new HashMap<>(1);
        httpResponse.sendTemplate("home/home.ftl",data);
    }
}
